import request from '@/utils/request';

// 查询资质列表
export function list(query) {
    return request({
        url: '/system/companyCert/list',
        method: 'get',
        params: query
    });
}
// 查询公司数据
export function companyName(query) {
    return request({
        url: '/system/companyInfo/list',
        method: 'get',
        params: query
    });
}

// 查询资质详细
export function getDetail(id) {
    return request({
        url: '/system/companyCert/' + id,
        method: 'get'
    });
}
// 查询资质编号
export function code() {
    return request({
        url: '/system/companyCert/getCodeNo',
        method: 'get'
    });
}

// 新增资质
export function add(data) {
    return request({
        url: '/system/companyCert',
        method: 'post',
        data: data
    });
}

// 修改资质
export function update(data) {
    return request({
        url: '/system/companyCert',
        method: 'put',
        data: data
    });
}

// 删除资质
export function del(id) {
    return request({
        url: '/system/companyCert/' + id,
        method: 'delete'
    });
}
